import com from "../../utils/common"
import weShare from "./weshare";
import $ from "jquery";

let wxShare = {};
wxShare.SetShare = function (obj) {
  let shareData = obj;
  let url = location.href.split('#')[0];
  com.ajax({
    url: "/wx/getjsticket",
    data: {
      reqUrl: url,
    },
    ok: function (data) {
      $.extend(shareData, data["msg"]);
      console.log(shareData);
      weShare(shareData)
    }
  })

}
export default wxShare